import { PropType } from 'vue';

export interface BasicProps {
  width: string;
  height: string;
  // series data array
  quantity: any[];
  dlByMoth: number;
  runTime: number;
  avgDl: number;
  xAxisData: string[];
}
export const basicProps = {
  width: {
    type: String as PropType<string>,
    default: '100%',
  },
  height: {
    type: String as PropType<string>,
    default: '420px',
  },
  quantity: {
    type: Array as PropType<any[]>,
    default: () => [],
  },
  dlByMoth: {
    type: Number as PropType<number>,
    default: 0,
  },
  runTime: {
    type: Number as PropType<number>,
    default: 0,
  },
  avgDl: {
    type: Number as PropType<number>,
    default: 0,
  },
  xAxisData: {
    type: Array as PropType<string[]>,
    default: () => [],
  },
};
